<template>
  <div class="home-page">
    <h1>农村爱心水果售卖系统</h1>
    <p>欢迎访问我们的平台，支持农村种植户，品尝新鲜水果</p>

    <div class="quick-links">
      <el-button type="primary" @click="goToFruitList">
        浏览水果
      </el-button>
      <el-button @click="goToAbout">
        爱心总览
      </el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

// 前往水果列表
const goToFruitList = () => {
  router.push('/fruit/list');
};

// 前往关于我们
const goToAbout = () => {
  router.push('/donation/total');
};
</script>

<style scoped>
.home-page {
  text-align: center;
  padding: 50px 20px;
}

h1 {
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: 32px;
}

p {
  color: #666;
  margin-bottom: 30px;
  font-size: 18px;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
</style>
